STAAD.Pro Physical Modeler Help

XML Basics

This document describes the syntax to create a XML Template file, that could be used as an input for the Structural Template Wizard.

In XML files, whitespace between elements and attributes is ignored. So line breaks and tabs do not affect the processing of the file.

Note: It is recommended that you use an XML-aware editor when creating and editing XML files. Microsoft's Visual Studio Code with the XML Language Support extension from Red Hat is a free and easy-to-use example.

Reserved Markup Characters

Some special characters are not allowed in XML code (known as reserved markup characters). In order to utilize these in attribute or element values, you must utilize the following character escape sequences:

Name Symbol Escape Sequence
Double quote " " or "
Single quote (apostrophe) ' ' or '
Lesser than < &lt; or &#60;
Greater than > &gt; or &#62;
Ampersand & &amp; or &#38;

For example, to write a condition "A < 5", you need to use:

<If Condition="a&lt;5" />

Functions

The allowed functions that can be used in the XML equations are:

SettingDescription
Pi() Constant value of π (3.14159265358)
Sin(x) Sine trigonometrical function of x in radians (i.e. Sin(π/2)=1)
Cos(x) Cosine trigonometrical function of x in radians (i.e. Cos(π/2)=0)
Tan(x) Tangent trigonometrical function of x in radians (i.e. Tan(π)=0)
ASin(x) Arcsine in radians of x number (i.e. ASin(1)= π/2)
ACos(x) Arccosine in radians of x number (i.e. ACos(0)= π/2)
ATan(x) Arctangent in radians of x number (i.e. ATan(0)= π)
ATan2(y,x) Angle whose tangent is the quotient of two specified numbers (i.e. ATan2(2,1)=1.126)
Abs(x) Returns the absolute value of x (i.e. Abs(-1)=1)
Sqrt(x) Returns the square root of x (i.e. Sqrt(4)=2)
Max(x, y) Returns the maximum value between x and y (i.e. Max(1, 2)=2)
Min(x, y) Returns the minimum value between x and y (i.e. Min(1, 2)=1)
Pow(x, y) Returns the value of x to the power of y (xy) (i.e. Pow(2, 2)=4)
Radians(x) Returns the converted value of x from degrees to radians (i.e. Radians(180)= π)
Degrees(x) Returns the converted value of x from radians to degrees (i.e. Degrees(π)=180)
Exp(x) Returns e raised to the power of x (ex) (i.e. Exp(1)= 2.718282)
Log(x) Returns the natural (base e) logarithm of the specified x (i.e. Log(2)= 0.693147)
Log10(x) Returns the base 10 logarithm of a specified number (i.e. Log10(100)=2)
Concat(x,y,…) Returns the concatenated text of all parameters (i.e. Concat('X',1+1)=X2)
IF(c,x,y) Returns whether x or y depending if the condition c is true or false (i.e. If(1=2,0,1)=1)